﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Drawing;

namespace EarthImitate
{
    public class Earth : Planet
    {


        public Earth(Point2D p0)
            : base()
        {
            base.gocToaDo = p0;
            base.gocQuay = (float)(5 * Math.PI / 180);
            base.phanHoach = 25;
            base.gocPhi = -1;
            base.gocTeta = -1.3;
            base.banKinh = 70;
            base.colorLine = Color.Blue;
            InitWireframe();
        }


        public override void Draw(Graphics graphics)
        {
            Drawing.tinhPhapVector(ref this.wireFrame, gocPhi, gocTeta);
            Vector vTraiDat; vTraiDat.x = 0; vTraiDat.y = 0; vTraiDat.z = 1; //{ 0, 0, 1 };// -vector tia nhin           
            Drawing.khuMatKhuat(ref this.wireFrame, vTraiDat);
            Drawing.veSS_viewxyMT(graphics, this.wireFrame, this.gocPhi, this.gocTeta, this.gocToaDo, this.ColorLine);

        }
        public void Move(double newX, double newY)
        {
            this.GocToaDoX = newX;
            this.GocToaDoY = newY;
        }
        public void Turn()
        {
            Drawing.bienB_repOY(ref this.wireFrame, gocQuay);

        }
      
    }
}
